﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Cloud.Dto
{
   public  class SysUserDto
    {
        public SysUserDto() {
            this.RoleList = new List<RoleDto>();
        }
        public int LoginID { get; set; }
        [Required(ErrorMessage ="登录名不能为空")]
        public string LoginName { get; set; }
        [Required(ErrorMessage = "登录密码不能为空")]
        public string LoginPwd { get; set; }
        public string SaltKey { get; set; }
        public string RelName { get; set; }
        public bool IsAdmin { get; set; }

        [Required(ErrorMessage = "手机号不能为空")]
        public string Phone { get; set; }
        public string Email { get; set; }
        public int AccountId { get; set; }

        public List<RoleDto> RoleList { get; set; }
    }
}
